﻿@model Tippelde.Web.Models.RegisterViewModel
@{
    ViewBag.Title = "Regisztráció";
}

<h2>@ViewBag.Title.</h2>
<div class="col-md-6">
    @using (Html.BeginForm("Register", "Account", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
    {
        @Html.AntiForgeryToken()
        <h4>Új felhasználó létrehozása.</h4>
        <hr />
        @Html.ValidationSummary()
        <div class="form-group">
            <div class="input-group">
                <div class="input-group-addon"><span class="glyphicon glyphicon-user"></span></div>
                @Html.TextBoxFor(m => m.UserName, new { @class = "form-control", placeholder = Html.DisplayNameOf(m => m.UserName) })
            </div>
        </div>
        <div class="form-group">
            <div class="input-group">
                <div class="input-group-addon"><span class="glyphicon glyphicon-user"></span></div>
                @Html.TextBoxFor(m => m.FullName, new { @class = "form-control", placeholder = Html.DisplayNameOf(m => m.FullName) })
            </div>
        </div>
        <div class="form-group">
            <div class="input-group">
                <div class="input-group-addon"><span class="glyphicon-email"></span></div>
                @Html.TextBoxFor(m => m.Email, new { @class = "form-control", @type = "email", placeholder = Html.DisplayNameOf(m => m.Email) })
            </div>
        </div>
        <div class="form-group">
            <div class="input-group">
                <div class="input-group-addon"><span class="glyphicon glyphicon-eye-close"></span></div>
                @Html.PasswordFor(m => m.Password, new { @class = "form-control", placeholder = Html.DisplayNameOf(m => m.Password) })
            </div>
        </div>
        <div class="form-group">
            <div class="input-group">
                <div class="input-group-addon"><span class="glyphicon glyphicon-eye-close"></span></div>
                @Html.PasswordFor(m => m.ConfirmPassword, new { @class = "form-control", placeholder = Html.DisplayNameOf(m => m.ConfirmPassword) })
            </div>
        </div>
        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" class="btn btn-default" value="Regisztrálok" />
            </div>
        </div>
    }
</div>
<div class="col-md-6">
    <section id="socialLoginForm">
        @Html.Partial("_ExternalLoginsListPartial", new { Action = "ExternalLogin", ReturnUrl = ViewBag.ReturnUrl })
    </section>
</div>
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
